package cn.edu.uestc.software.mapper;

import cn.edu.uestc.software.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    List<Role> selectRoles(@Param("index") int index,
                           @Param("roleName") String roleName,
                           @Param("roleLevel") String roleLevel);

    int selectRoleCounts(@Param("roleName") String roleName,
                         @Param("roleLevel") String roleLevel);

    List<Role> selectAllRoles();

    void insert(Role role);

    void update(Role role);

    void delete(Integer id);
}
